
// 导入窗口类
import { VueGuiWindow } from "./src/VueGuiWindow.js";
import App from "./app/test/App.vue";

// 获取画布
const canvas = document.getElementById('window');
const input = document.getElementById('input');
// canvas.focus();
// 创建VueGuiWindow窗口
const vue_gui_window = new VueGuiWindow(canvas, input, (createApp) => {
    const app = createApp(App);
    // app.mixin({
    //     beforeMount() {
    //         console.log("Global Mixin - beforeMount");
    //     }
    // });
    return app;
});

// 动画帧渲染
const frame_request_callback = () => {
    vue_gui_window.Render();
    requestAnimationFrame(frame_request_callback);
}
frame_request_callback();

window.vue_gui_window = vue_gui_window;

